import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home/Home'
import Shopcar from '@/components/shopcar/Shopcar'
import Vip from '@/components/vip/Vip'
import Sousuo from '@/components/sousuo/Sousuo'
import NewList from '@/components/news/NewList'
import NewsDetail from '@/components/news/NewsDetail'
import GoodsList from '@/components/goods/GoodsList'
import GoodsInfo from '@/components/goods/GoodsInfo'
import ShopDetail from '@/components/goods/ShopDetail'
import ShopComment from '@/components/goods/ShopComment'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path:"/",
      redirect:"Home"
    },
    {
      path: '/home',
      name: 'home',
      component: Home
    },
    {
      path: '/shopcar',
      name: 'shopcar',
      component: Shopcar
    },
    {
      path: '/vip',
      name: 'vip',
      component: Vip
    },
    {
      path: '/sousuo',
      name: 'sousuo',
      component: Sousuo
    },
    {
      path: '/home/newList',
      name: 'newList',
      component: NewList
    },
    {
      path:'/home/newList/newsDetail',
      name:'newsDetail',
      component:NewsDetail
    }
    ,{
      path:"/home/goodsList",
      name:"goodsList",
      component:GoodsList
    },
    {
      path:"/home/goodsList/goodsInfo",
      name:"goodsInfo",
      component:GoodsInfo
    },
    {
      path:"/home/goodsList/shopDetail",
      name:"shopDetail",
      component:ShopDetail
    },
    {
      path:"/home/goodsList/shopComment",
      name:"shopComment",
      component:ShopComment
    }
  ]
})
